.class Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;
.super Ljava/lang/Object;
.source "ElementWorkspaceSwitcher.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/ElementWorkspaceSwitcher;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V
    .locals 0
    .parameter

    .prologue
    .line 666
    iput-object p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLongPressdown(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 1
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 714
    const/4 v0, 0x0

    return v0
.end method

.method public onSelected(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 1
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 707
    const/4 v0, 0x0

    return v0
.end method

.method public onTouchDown(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 1
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 701
    const/4 v0, 0x0

    return v0
.end method

.method public onTouchDrag(Lcom/nemustech/tiffany/world/TFModel;IFFFFI)Z
    .locals 1
    .parameter "model"
    .parameter "faceIndex"
    .parameter "sx"
    .parameter "sy"
    .parameter "ex"
    .parameter "ey"
    .parameter "tickPassed"

    .prologue
    .line 695
    const/4 v0, 0x0

    return v0
.end method

.method public onTouchUp(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 9
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 671
    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$300(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementLocator;

    move-result-object v5

    invoke-virtual {v5}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v4

    .line 672
    .local v4, spaces:I
    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$200(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v5

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v3

    .line 674
    .local v3, pref:Lcom/nemustech/regina/ReginaPreference;
    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$300(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementLocator;

    move-result-object v5

    iget-object v6, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v6}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$200(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v6

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaPreference;->addWorkspace()I

    move-result v7

    invoke-virtual {v5, v6, v7}, Lcom/nemustech/regina/ElementLocator;->addWorkspace(II)V

    .line 675
    add-int/lit8 v4, v4, 0x1

    .line 676
    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$100(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    move-result-object v5

    invoke-virtual {v5, v4}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 677
    .local v0, addThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$1300(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Z

    move-result v1

    .line 678
    .local v1, needAddPanel:Z
    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    .line 679
    if-nez v1, :cond_0

    const/4 v5, 0x0

    invoke-virtual {v0, v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setOpacity(F)V

    .line 681
    :cond_0
    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$100(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    move-result-object v5

    const/4 v6, 0x1

    sub-int v6, v4, v6

    invoke-virtual {v5, v6}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v2

    check-cast v2, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 682
    .local v2, newWorkspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    const/4 v6, 0x0

    invoke-virtual {v5, v6}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->rearrangeWorkspaceThumbs(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 684
    const/4 v5, 0x2

    invoke-virtual {v2, v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v5

    const/high16 v6, 0x3f80

    const-wide/16 v7, 0xc8

    invoke-virtual {v5, v6, v7, v8}, Lcom/nemustech/tiffany/world/TFObject;->fade(FJ)V

    .line 685
    const/high16 v5, 0x3f80

    const-wide/16 v6, 0xc8

    invoke-virtual {v2, v5, v6, v7}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->fade(FJ)V

    .line 686
    const/4 v5, 0x2

    invoke-virtual {v2, v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v5, 0x1

    invoke-virtual {p0, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setTouchable(Z)V

    .line 688
    const/4 v5, 0x1

    return v5
.end method
